﻿@model Senac.ProjetoIntegrador.EducacaoWeb.Models.Professor

@{
    ViewBag.Title = "Edit";
}

<h2>Editar</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Professor</legend>

        @Html.HiddenFor(model => model.ProfessorID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Nome)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nome)
            @Html.ValidationMessageFor(model => model.Nome)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Disciplina)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Disciplina)
            @Html.ValidationMessageFor(model => model.Disciplina)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UsuarioID, "Usuario")
        </div>
        <div class="editor-field">
            @Html.DropDownList("UsuarioID", String.Empty)
            @Html.ValidationMessageFor(model => model.UsuarioID)
        </div>

        <p><P></P>
            <input class="btn btn-danger" type="submit" value="Save" />        
        </p>
    </fieldset>
}
